<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 *公告管理
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'sj';
if($_RQ['op']=='sj'){
	$return=array();
	$item=$this->plugin_setting('poster');
	$data=$this->datademo;
	$item['url']=custom_url('jy_peiedu/build//type=3',true);
	$item['data']['image']=$item['data']['image']?:'../addons/jy_peiedu/images/cert.jpg';
	$item['data']['data']=$item['data']['data']?:$data;
	$return['item']=$item;
	$return['datademo']=array('data'=>$data,'image'=>'../addons/jy_peiedu/images/cert.jpg');
	$return['datatypes']=$this->datatypes;
	$return['datapushs']=$this->datapushs;
	exi($return);
}

if($_RQ['op']=='design'){
	$postdata=get_postdata();
	$this->plugin_setting('poster',$postdata);
	exi('设置成功');
}
